//实现创建对象不同方法  -->  工厂方法,这种套路是"工厂模式"
class Point{
    /*public static Point makePointByXY(double x,double y){
        Point p = new Point();
        p.setX(x);
        p.setY(y);
        return p;
    }
    public static Point makePointByRA(double r,double a){
        Point p = new Point();
        p.setR(r);
        p.setA(a);
        return p;
    }*/
}

public class Demo3 {
    /*public static void main(String[] args) {
        Point p = Point.makePointByRA(10,23);
    }*/
}
